package DB;

import java.sql.Connection;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author Sibrand
 */
public class DBInfo {

    public static String url = "localhost:3306/gwtgroep8";
    public static String username = "gwtgroep8";
    public static String password = "l02Cz2Za";
    public static DB connection = new DB(url, username, password);

    public static Connection getConnection() {
        if (connection.isConnected()) {
            return connection.conn;
        } else {
            while (!connection.isConnected()) {
                connection = new DB(url, username, password);
            }
            return connection.conn;
        }
    }
}
